//
//  ImageDemoViewController.m
//  JackToolsBox
//
//  Created by Jack Xue on 2019/12/11.
//  Copyright © 2019 Jack Xue. All rights reserved.
//

#import "ImageDemoViewController.h"
#import "BigImageViewController.h"  //测试图片缓存-是个tablevuew
#import "JKWebImage.h"              //下载图片，此处为了调用清除缓存的方法

#import "ImageDemoView.h"

@interface ImageDemoViewController ()

@end

@implementation ImageDemoViewController

- (void)loadView
{
    [super loadView];
    
    ImageDemoView *view = [[ImageDemoView alloc] initWithFrame:self.view.bounds];
    view.delegate = self;
    self.view = view;
    view = nil;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
}

- (void)clearAction{
    //手动清除所有缓存
    [[JackWebImageManager sharedManager] removeAllImageCache];
}

- (void)doNext {
    BigImageViewController *new = [[BigImageViewController alloc]init];
    [self.navigationController pushViewController:new animated:YES];
}

@end
